# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=libglibutil
pkgver=1.0.47
pkgrel=0
pkgdesc="Library of glib utilities"
url="https://git.sailfishos.org/mer-core/libglibutil"
arch="all"
license="BSD-3-Clause"
makedepends="glib-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://git.sailfishos.org/mer-core/libglibutil/-/archive/$pkgver/libglibutil-$pkgver.tar.gz"
options="!check" # test_log.c: error: assignment of read-only variable 'stdout'

build() {
	make KEEP_SYMBOLS=1 release pkgconfig
}

package() {
	make DESTDIR="$pkgdir" install-dev
	install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="22c314667932c7bdd57cfe047114c70fece1627cc5c0b831da1942f0b18876b47340f728fa40a6caf8e6357ead0e101ee40c531d5624688cbe2ff63ccd75b7e2  libglibutil-1.0.47.tar.gz"
